<?php
$title = 'Synthese carte';
$this->headTitle($title);
$this->headLink()->prependStylesheet($this->basePath()."/css/foam/style-synthese.css");
$this->headScript()->prependFile($this->basePath()."/js/foam/script-synthese.js");
?>
<div class="content-head">
    <h3><?php echo $title; ?></h3>
</div>
<div class="content-body">
    <div class="list-container">
        <table class="table table-striped list-table table-synthese">
            <thead>
                <tr>
                    <th width="20%">Libellé</th>
                    <th>Description</th>
                    <th width="10%">Date début</th>
                    <th width="10%">Date fin</th>
                    <th width="8%"></th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($cartes as $carte): ?>
                <tr id="row_<?php echo $carte->id_carte; ?>">
                    <td><?php echo $carte->libelle; ?></td>
                    <td><?php echo $carte->description; ?></td>
                    <td style="text-align:center"><?php echo $carte->date_debut; ?></td>
                    <td style="text-align:center"><?php echo $carte->date_fin; ?></td>
                    <td class="center" style="vertical-align:middle">
                        <img title="Afficher synthese" src="<?php echo $this->basePath()."/img/foam/synthese-32.png"?>" border="0" alt="Synthese" class="enable" style="cursor:pointer" onClick="showSynthese(<?php echo $carte->id_carte; ?>);" />
                        &nbsp;&nbsp;&nbsp;
                        <img title="Livre d'information" src="<?php echo $this->basePath()."/img/foam/livre-32.png"?>" border="0" alt="Livre" class="delete" style="cursor:pointer" />
                    </td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</div>
<div id="dialog"></div>
